package DDBMapper;

public class DDBTypeMismatchException extends RuntimeException {

	private static final long serialVersionUID = 3240636489230193002L;
	
	public DDBTypeMismatchException(String property, DDBTypes to, Class<?> from) {
		this(property, to, from, null);
	}
	
	public DDBTypeMismatchException(String property, DDBTypes to, Class<?> from, Throwable inner) {
		super(String.format("Cannot convert property [%S] of type [%S] to [%S].", property, from.getName(), to.toString()), inner);
	}
}